"""Game global state"""

window = None
time = 0 # Time elapsed since game start


def init():
	# Imports are done locally to avoid circular imports and side effects

	global window
	from window import Window
	window = Window(width=1280, height=800)

	import sector
	window.push_state(sector.TacticalView(sector.Sector()))


class State:
    """Abstract game state class

    Game states are event handlers that encapsulate
    a particular mode of the game window
    """

    def enter(self, window):
        """Called when state is entered"""
    
    def exit(self, window):
        """Called when state is exited"""

